package org.come.shortcut;

import com.tool.image.ImageMixDeal;
import com.tool.tcp.Sprite;
import com.tool.tcp.SpriteFactory;
import com.updateNew.MyIsif;
import org.come.shortcut.XBjczBtn;
import com.tool.btn.FormsOnOffBtn;
import com.tool.pet.BabyProperty;
import com.tool.role.RoleData;
import com.tool.tcpimg.UIUtils;
import org.come.Jpanel.BjczJpanel;
import org.come.bean.ConfigureBean;
import org.come.entity.Baby;
import org.come.entity.Goodstable;
import org.come.model.Configure;
import org.come.mouslisten.WLLMouslisten;
import org.come.tt.LadderBoxOpenMouslisten;
import org.come.tt.LadderPanelBtn;
import org.come.until.CutButtonImage;
import org.come.until.UserMessUntil;

import javax.swing.*;
import java.awt.*;
import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Map;import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.math.BigDecimal;
import java.util.Calendar;
import java.util.List;
import java.util.Map;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;




public class XBjczJpanelFgnl extends JPanel {

    private JLabel  labtext,labtext1,labtext2;//

    private static FormsOnOffBtn palBtn,protectBtn,qlyBtn,
            dytBtn,dgBtn,CHA,chuan,
            xfBtn,huanj,slBtn,jdBtn,jdBtn1,arenaBtn,pdBtn,yzBtn,
            TJBtn1,zhuanshen,dnBtn,
            CBGBtn,ttBtn,lsBtn,lsBtn1,fuzhu,
            zaBtn,RanklistBtn,huanjzhs,
            baoshihecheng,peishipeiyang,
            xianqihecheng,zhuangbeidaz,shenbingshengji,
            ypBtn,byBtn,fwBtn,
            gangBtn,friendsBtn,
            taskBtn,petBtn,childBtn,
            knapsackBtn,QianDaoMenu,GMshop,TtBtn,bjczBtn
            ,spBtn,ksBtn,bpBtn;


    private Goodstable good;
    private static String[] Fvalue;
    private static JTextArea testMes;// 用来显示聊天信息
    public static String npcfeiji;

    //新增加tcp
    static Sprite tcp = SpriteFactory.VloadSprite("skin/300019/stand.tcp", null);//特效路径
    static Sprite tcp2 = SpriteFactory.VloadSprite("skin/300014/stand.tcp", null);//特效路径
    static Sprite tcp3 = SpriteFactory.VloadSprite("skin/300013/stand.tcp", null);//特效路径
    static Sprite tcp4 = SpriteFactory.VloadSprite("skin/300018/stand.tcp", null);//特效路径
    static Sprite tcp5 = SpriteFactory.VloadSprite("skin/300026/stand.tcp", null);//特效路径
    static Sprite tcp6 = SpriteFactory.VloadSprite("skin/300012/stand.tcp", null);//特效路径

    private ImageIcon icon = null;
    static {
        if (tcp == null) {
            tcp = tcp;

        }
    }
    static {
        if (tcp2 == null) {
            tcp2 = tcp2;

        }
    }
    static {
        if (tcp3 == null) {
            tcp3 = tcp3;

        }
    }
    static {
        if (tcp4 == null) {
            tcp4 = tcp4;

        }
    }
    static {
        if (tcp5 == null) {
            tcp5 = tcp5;

        }
    }
    static {
        if (tcp6 == null) {
            tcp6 = tcp6;

        }
    }


    public XBjczJpanelFgnl() {
        if (MyIsif.getStyle().equals("水墨UI")) {
            this.setPreferredSize(new Dimension(658, 414));
            this.setLayout(null);
            this.setBackground(UIUtils.Color_BACK);

//        ConfigureBean allConfigure = UserMessUntil.getConfigureBean();
//        Map<BigDecimal, Configure> item = allConfigure.getAllConfigure();
//        Configure configure = item.get(new BigDecimal(1));
//        int szz = 5;//3种族
//        if(configure.getLzjskg()!=null) {
//            szz = Integer.parseInt(configure.getLzjskg());
//        }

//        if(szz == 5) {

            /**----------------------------------------功能类-------------------------------------------*/
            //典当
            TJBtn1 = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "存 物" , 29);
            TJBtn1.setBounds(82, 63, 68, 17);
            this.add(TJBtn1);
            //赎当取回
            arenaBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "取 物" , 1024);
            arenaBtn.setBounds(82, 63+30, 68, 17);
//        	arenaBtn.setBounds(140, 220, 73, 33);
            this.add(arenaBtn);

            //双倍
            lsBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "领 双", 81);
            lsBtn.setBounds(82+90, 63, 68, 17);
            this.add(lsBtn);


            //双倍
            lsBtn1 = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "冻 结", 82);
            lsBtn1.setBounds(82+90, 63+30, 68, 17);
            this.add(lsBtn1);

            //杂货店
            zaBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "杂 货" ,  79);
            zaBtn.addMouseListener(new WLLMouslisten(5));
            zaBtn.setBounds(82+90*2, 63, 68, 17);
            this.add(zaBtn);

            //绑玉商店
            byBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "药 店", 131);
            byBtn.setBounds(82+90*2, 63+30, 68, 17);
            this.add(byBtn);

            //藏宝阁
            CBGBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "藏宝阁" ,78);
            CBGBtn.setBounds(82+90*3, 63, 68, 17);
            this.add(CBGBtn);

            //道具兑换
            huanj = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "兑 换", 4000);
            huanj.setBounds(82+90*3, 63+30, 68, 17);//x+95,y+45
//            huanj.addMouseListener(new WLLMouslisten(37));
            this.add(huanj);

            //医治
            jdBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "医 治", 1026);
            jdBtn.setBounds(82+90*4, 63, 68, 17);
//        	jdBtn.setBounds(45, 310, 73, 33);
            this.add(jdBtn);

            //住店
            jdBtn1 = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "住 店", 83);
            jdBtn1.setBounds(82+90*4, 63+30, 68, 17);
//        	jdBtn1.setBounds(45, 310, 73, 33);
            this.add(jdBtn1);

            //伙伴
            palBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "伙 伴", 105);
            palBtn.setBounds(82+90*5, 63, 68, 17);
            this.add(palBtn);

            //千里眼
            qlyBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "千里眼", 1116);
            qlyBtn.setBounds(82+90*5, 63+30, 68, 17);
            this.add(qlyBtn);

            //召唤兽合成，下面新栏目--------------------------------------------------------------------------------------------------
            huanjzhs = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "合成", 4001);
            huanjzhs.setBounds(82, 153, 68, 17);
            this.add(huanjzhs);

            //召唤兽转生
            zhuanshen = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "转生", 999);
            zhuanshen.addMouseListener(new WLLMouslisten(4));
            zhuanshen.setBounds(82, 153+30, 68, 17);
            this.add(zhuanshen);

            //npc查询
            chuan = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "查询", 1101);
            chuan.setBounds(82, 153+30*2, 68, 17);
            this.add(chuan);

            //大雁塔
            dytBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "大雁塔", 120);
            dytBtn.setBounds(82+90, 153, 68, 17);
            this.add(dytBtn);

            //地宫商店
            dgBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "地宫", 121);
            dgBtn.setBounds(82+90, 153+30, 68, 17);
            this.add(dgBtn);

            //寻访商店
            xfBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "寻芳", 123);
            xfBtn.setBounds(82+90, 153+30*2, 68, 17);
            this.add(xfBtn);

            //水陆商店
            slBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "水陆", 126);
            slBtn.setBounds(82+90*2, 153, 68, 17);
            this.add(slBtn);

            //勇者
            yzBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "勇者", 92);
            yzBtn.setBounds(82+90*2, 153+30, 68, 17);
            this.add(yzBtn);

            //大闹
            dnBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "大闹", 128);
            dnBtn.setBounds(82+90*2, 153+30*2, 68, 17);
            this.add(dnBtn);

            //宝石打造
            baoshihecheng = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "宝石", 995);
            baoshihecheng.setBounds(82+90*3, 153, 68, 17);
            this.add(baoshihecheng);

            //配饰培养
            peishipeiyang = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "配饰", 994);
            peishipeiyang.setBounds(82+90*3, 153+30, 68, 17);
            this.add(peishipeiyang);

            //掉落查询
            CHA = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "掉落", 600);
            CHA.setBounds(82+90*3, 153+30*2, 68, 17);
            this.add(CHA);

            //仙器合成
            xianqihecheng = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "仙器", 996);
            xianqihecheng.setBounds(82+90*4, 153, 68, 17);
            this.add(xianqihecheng);

            //装备打造
            zhuangbeidaz = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "打造", 998);
            zhuangbeidaz.setBounds(82+90*4, 153+30, 68, 17);
            this.add(zhuangbeidaz);

            //神兵升级
            shenbingshengji = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "神兵", 997);
            shenbingshengji.setBounds(82+90*4, 153+30*2, 68, 17);
            this.add(shenbingshengji);

            //药品
            ypBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "饰品", 132);
            ypBtn.setBounds(82+90*5, 153, 68, 17);
            this.add(ypBtn);

            //符文
            fwBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "符文", 130);
            fwBtn.setBounds(82+90*5, 153+30, 68, 17);
            this.add(fwBtn);

            //绑玉
            byBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "绑玉", 129);
            byBtn.setBounds(82+90*5, 153+30*2, 68, 17);
            this.add(byBtn);

        }else{
            this.setPreferredSize(new Dimension(658, 414));
            this.setLayout(null);
            this.setBackground(UIUtils.Color_BACK);

//        ConfigureBean allConfigure = UserMessUntil.getConfigureBean();
//        Map<BigDecimal, Configure> item = allConfigure.getAllConfigure();
//        Configure configure = item.get(new BigDecimal(1));
//        int szz = 5;//3种族
//        if(configure.getLzjskg()!=null) {
//            szz = Integer.parseInt(configure.getLzjskg());
//        }

//        if(szz == 5) {

            /**----------------------------------------功能类-------------------------------------------*/
            //典当
            TJBtn1 = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "存 物" , 29);
            TJBtn1.setBounds(82, 63-10, 68, 17);
            this.add(TJBtn1);
            //赎当取回
            arenaBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "取 物" , 1024);
            arenaBtn.setBounds(82, 63+30, 68, 17);
//        	arenaBtn.setBounds(140, 220, 73, 33);
            this.add(arenaBtn);

            //双倍
            lsBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "领 双", 81);
            lsBtn.setBounds(82+90, 63-10, 68, 17);
            this.add(lsBtn);


            //双倍
            lsBtn1 = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "冻 结", 82);
            lsBtn1.setBounds(82+90, 63+30, 68, 17);
            this.add(lsBtn1);

            //杂货店
            zaBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "杂 货" ,  79);
            zaBtn.addMouseListener(new WLLMouslisten(5));
            zaBtn.setBounds(82+90*2, 63-10, 68, 17);
            this.add(zaBtn);

            //绑玉商店
            byBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "药 店", 131);
            byBtn.setBounds(82+90*2, 63+30, 68, 17);
            this.add(byBtn);

            //藏宝阁
            CBGBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "藏宝阁" ,78);
            CBGBtn.setBounds(82+90*3, 63-10, 68, 17);
            this.add(CBGBtn);

            //道具兑换
            huanj = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "兑 换", 4000);
            huanj.setBounds(82+90*3, 63+30, 68, 17);//x+95,y+45
//            huanj.addMouseListener(new WLLMouslisten(37));
            this.add(huanj);

            //医治
            jdBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "医 治", 1026);
            jdBtn.setBounds(82+90*4, 63-10, 68, 17);
//        	jdBtn.setBounds(45, 310, 73, 33);
            this.add(jdBtn);

            //住店
            jdBtn1 = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "住 店", 83);
            jdBtn1.setBounds(82+90*4, 63+30, 68, 17);
//        	jdBtn1.setBounds(45, 310, 73, 33);
            this.add(jdBtn1);

            //伙伴
            palBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "伙 伴", 105);
            palBtn.setBounds(82+90*5, 63-10, 68, 17);
            this.add(palBtn);

            //千里眼
            qlyBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "千里眼", 1116);
            qlyBtn.setBounds(82+90*5, 63+30, 68, 17);
            this.add(qlyBtn);

            //召唤兽合成，下面新栏目--------------------------------------------------------------------------------------------------
            huanjzhs = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "合成", 4001);
            huanjzhs.setBounds(82, 153-20, 68, 17);
            this.add(huanjzhs);

            //召唤兽转生
            zhuanshen = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "转生", 999);
            zhuanshen.addMouseListener(new WLLMouslisten(4));
            zhuanshen.setBounds(82, 153+18, 68, 17);
            this.add(zhuanshen);

            //npc查询
            chuan = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "查询", 1101);
            chuan.setBounds(82, 153+30*2, 68, 17);
            this.add(chuan);

            //大雁塔
            dytBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "大雁塔", 120);
            dytBtn.setBounds(82+90, 153-20, 68, 17);
            this.add(dytBtn);

            //地宫商店
            dgBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "地宫", 121);
            dgBtn.setBounds(82+90, 153+18, 68, 17);
            this.add(dgBtn);

            //寻访商店
            xfBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "寻芳", 123);
            xfBtn.setBounds(82+90, 153+30*2, 68, 17);
            this.add(xfBtn);

            //水陆商店
            slBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "水陆", 126);
            slBtn.setBounds(82+90*2, 153-20, 68, 17);
            this.add(slBtn);

            //勇者
            yzBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "勇者", 92);
            yzBtn.setBounds(82+90*2, 153+18, 68, 17);
            this.add(yzBtn);

            //大闹
            dnBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "大闹", 128);
            dnBtn.setBounds(82+90*2, 153+30*2, 68, 17);
            this.add(dnBtn);

            //宝石打造
            baoshihecheng = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "宝石", 995);
            baoshihecheng.setBounds(82+90*3, 153-20, 68, 17);
            this.add(baoshihecheng);

            //配饰培养
            peishipeiyang = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "配饰", 994);
            peishipeiyang.setBounds(82+90*3, 153+18, 68, 17);
            this.add(peishipeiyang);

            //掉落查询
            CHA = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "掉落", 600);
            CHA.setBounds(82+90*3, 153+30*2, 68, 17);
            this.add(CHA);

            //仙器合成
            xianqihecheng = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "仙器", 996);
            xianqihecheng.setBounds(82+90*4, 153-20, 68, 17);
            this.add(xianqihecheng);

            //装备打造
            zhuangbeidaz = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "打造", 998);
            zhuangbeidaz.setBounds(82+90*4, 153+18, 68, 17);
            this.add(zhuangbeidaz);

            //神兵升级
            shenbingshengji = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "神兵", 997);
            shenbingshengji.setBounds(82+90*4, 153+30*2, 68, 17);
            this.add(shenbingshengji);

            //药品
            ypBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "饰品", 132);
            ypBtn.setBounds(82+90*5, 153-20, 68, 17);
            this.add(ypBtn);

            //符文
            fwBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "符文", 130);
            fwBtn.setBounds(82+90*5, 153+18, 68, 17);
            this.add(fwBtn);

            //绑玉
            byBtn = new FormsOnOffBtn("skin/8100226/newbutton/B34.png", 1, UIUtils.COLOR_BTNTEXT, "绑玉", 129);
            byBtn.setBounds(82+90*5, 153+30*2, 68, 17);
            this.add(byBtn);
        }
    }

    //    ImageIcon icon;
    ImageIcon icon2;

    @Override
    protected void paintComponent(Graphics g) {
        if (MyIsif.getStyle().equals("水墨UI")){
            // TODO Auto-generated method stub
            super.paintComponent(g);
            if (icon == null) {
                icon = new ImageIcon("inkImg/newbackground/B299.png");
            }
            g.drawImage(icon.getImage(), 0, 0, 658, 414, this);

        }else {
            // TODO Auto-generated method stub
            super.paintComponent(g);
            if (icon2 == null) {
                icon2 = new ImageIcon("skin/8100226/button/hongmu/B299-b.png");
            }
            g.drawImage(icon2.getImage(), 0, 0, 658, 414, this);
        }
    }



    public static int getCurrentMonthDay() {
        Calendar a = Calendar.getInstance();

        a.set(Calendar.DATE, 1);

        a.roll(Calendar.DATE, -1);

        int maxDate = a.get(Calendar.DATE);

        return maxDate;

    }


    public Goodstable getGood() {
        return good;
    }

    public void setGood(Goodstable good) {
        this.good = good;
    }

    public String[] getFvalue() {
        return Fvalue;
    }

    public void setFvalue(String[] fvalue) {
        Fvalue = fvalue;
    }

    public JTextArea getTestMes() {
        return testMes;
    }

    public void setTestMes(JTextArea testMes) {
        XBjczJpanelFgnl.testMes = testMes;
    }

    //新增加tcp
    @Override
    public void paint(Graphics g) {

        tcp.updateToTime(ImageMixDeal.userimg.getTime(), 0);
        tcp2.updateToTime(ImageMixDeal.userimg.getTime(), 0);
        tcp3.updateToTime(ImageMixDeal.userimg.getTime(), 0);
        tcp4.updateToTime(ImageMixDeal.userimg.getTime(), 0);
        tcp5.updateToTime(ImageMixDeal.userimg.getTime(), 0);
        tcp6.updateToTime(ImageMixDeal.userimg.getTime(), 0);
        super.paint(g);
        tcp.draw(g, 120, 355);
        tcp2.draw(g, 120+90, 355);
        tcp3.draw(g, 120+90*2, 355);
        tcp4.draw(g, 120+90*3, 355);
        tcp5.draw(g, 120+90*4, 355);
        tcp6.draw(g, 120+90*5, 355);
    }

//新增加tcp


}

